using ORS.OrderRobot.ServiceContracts.Dtos.Api;

namespace ORS.OrderRobot.ServiceContracts.ThridPartApi
{
    /// <summary>
    /// 用户账户服务
    /// </summary>
    public interface IThirdAccountService
    {
        /// <summary>
        /// 登录服务
        /// </summary>
        /// <param name="email"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Task<LoginResultInfo?> LoginAsync(string email, string password);
        /// <summary>
        /// 更新某个登录用户的资料
        /// </summary>
        /// <param name="updateUserInput"></param>
        /// <returns></returns>
        Task<LoginResultInfo?> UpdateInfoAsync(UpdateUserInput updateUserInput);
        /// <summary>
        /// 获取用户购物车信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BasketResDto> GetAccountBasketAsync(GetCustomerCartInput input);
    }
} 